package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.WorkFlow;
import com.yegs.jltqc.VO.WorkFlowResult;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface WorkFlowResultRepository extends JpaRepository<WorkFlowResult,Long> {


    WorkFlowResult findFirstByIdIsAfter(Long id);

    WorkFlowResult findFirstByIdBeforeOrderByIdDesc(Long id);

    WorkFlowResult findFirstByOrderById();

    WorkFlowResult findFirstByOrderByIdDesc();

    WorkFlowResult findWorkFlowResultByRefIdAndUserType(Long refId, String userType);


}
